package com.bjpowernode.dao;

import com.bjpowernode.user.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao {
    int insertOrder(Order order);

    int takeOrder(@Param("userId") Integer userId,
                  @Param("orderId") Integer orderId);

    int modifyOrder(Integer orderId);

    Order selectById(Integer orderId);

    int cancelOrder(Integer orderId);

    List<Order> findProviderOrder(Integer id);

    List<Order> loadNoTakeOrder();

    List<Order> loadUserOrder(Integer userId);

    List<Order> loadUserTakeOrder(Integer id);
}
